package com.ambow.Entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.*;
@Entity
@Table
public class Bclass extends ID implements Serializable{
    private String name;
    private  String grade;
    private String remark;
    @ManyToOne(targetEntity=Category.class)
    @JoinColumn(name="category_id" , referencedColumnName="id")
    private Category category;
    @ManyToOne(targetEntity=Level.class)
    @JoinColumn(name="level_id" , referencedColumnName="id")
    private Level level;
    @ManyToOne(targetEntity=Major.class)
    @JoinColumn(name="major_id" , referencedColumnName="id")
    private Major major;
    @OneToMany(targetEntity=Student.class,mappedBy="bclass")
    private List<Student> student;
    @OneToMany(mappedBy="bclass")
	private Set<BookFee> bFees=new HashSet<BookFee>();
  
	/**
	 * @return the bFees
	 */
	public Set<BookFee> getbFees() {
		return bFees;
	}
	/**
	 * @param bFees the bFees to set
	 */
	public void setbFees(Set<BookFee> bFees) {
		this.bFees = bFees;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	public Level getLevel() {
		return level;
	}
	public void setLevel(Level level) {
		this.level = level;
	}
	public Major getMajor() {
		return major;
	}
	public void setMajor(Major major) {
		this.major = major;
	}
	public List<Student> getStudent() {
		return student;
	}
	public void setStudent(List<Student> student) {
		this.student = student;
	}
    
    
}
